package pages;

import core.TestBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import utils.Log4Test;

/**
 * Created by 1 on 13.07.2014.
 */
public class ComparisonPage extends TestBase {
    protected By searchTitle = By.tagName("h1");
    protected By addModelLink = By.xpath(".//*[@class='first']/div/a");
    protected WebElement searchElem;

    public String verifyPageName() {

        Log4Test.info("Verify page name");

        searchElem = webDriver.findElement(searchTitle);

        return searchElem.getText();
    }

    public void addModelLinkClick(){
        WebElement w = webDriver.findElement(addModelLink);
        w.click();
    }
}
